// import _ from './lodash'
const _ = require('./lodash')


let arr = [1, 2, 3, 4]
// fill 从开始到结束， 填充想要填充的数据
 _.fill(arr, 1, 0)
console.log(arr)


const cluster = require('cluster')
const os = require('os').cpus()
console.log(os)


console.log(Math.max() < Math.min())

function flatten(arr){
    return arr.toString().split(',').map(item => parseInt(item))
}

console.log(flatten([1, 2, [3, 4], 5, 6]));
console.log([1, 2, [3, 4], 5, 6].flat(Infinity));

